/**
 * Created by HY on 2014/12/23 0023.
 */

$(function () {
	$("#submit").on('click', login)
})

function login() {
	ajaxSubmitJson("login", null, response);
}

function response(data) {
	if (data.success) {
		window.location.href = "/parnote/"
	} else {
		alert(data.msg);
	}
}
